<?php
class Soul_Template_Html_Data_Binder implements Soul_Template_Html_Data_IBinder{
	
	private $_data = NULL;
	
	public function getData(){
		return $this->_data;
	}	
	
	public function setData($value){
		$this->_data = $value;
	}
	
	public function bind(Soul_Template_Html_Form_Input $input){
		if(isset($this->_data[$input->getId()])){
			$input->setValue($this->_data[$input->getId()]);
		}
		return $this;
	}
}